//
//  slideSecondBoard.m
//  EFExtend
//
//  Created by mac on 15/3/25.
//  Copyright (c) 2015年 Eric. All rights reserved.
//

#import "slideSecondBoard.h"
#import "slideRoot.h"
#import "slideLeft.h"


@interface slideSecondBoard ()

@end

@implementation slideSecondBoard

- (void)dealloc
{
   
    HM_SUPER_DEALLOC();
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
    [self.customNavLeftBtn setImage:[UIImage imageNamed:@"back.png"] forState:UIControlStateNormal];
    [self.customNavLeftBtn setFrame:CGRectMakeBound(32, 32)];
    
    self.leftWidth = 200;
//    self.hasNavgator = YES;
    self.style = UISlideStyleFront;

    
    
    [[[[[[HMUIView viewAsButten] EFOwner:self.root.view] EFTagString:@"leftBtn"] EFTextColor:[UIColor blueColor]]EFText:@"返回"] mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.root.view.mas_top).offset(10);
        make.left.mas_equalTo(self.root.view.mas_left).offset(10);
        make.height.mas_equalTo(40);
        make.right.mas_equalTo(self.root.view.mas_right).offset(-10);
    }];
    
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

ON_Button(signal){
    UIButten *btn = signal.source;
    if ([signal is:[UIButten TOUCH_UP_INSIDE]]) {
        if ([btn is:@"leftBtn"]) {//customNavLeftBtn
            [self backAndRemoveWithAnimate:YES];
        }else if ([btn is:@"rightBtn"]){//customNavRightBtn
            
        }
    }
}

@end
